package com.maigu.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 水杯
 * @date 2020-05-07 22:33
 */
@Controller
public class TestController {
    private Logger logger=LoggerFactory.getLogger(this.getClass());
    @RequestMapping("/show")
    @ResponseBody
    public String show()
    {
        logger.debug("debug日志");
        logger.info("info日记");
        logger.warn("war日志");
        logger.error("error日志88888888899990000开发模试");

        return "show";
    }
}
